var CSViewerMainWindow = Ext.extend(Ext.Viewport, {
	initComponent: function(){
		var config = {
				xtype : 'xCSViewerMainWindow',
				layout: 'border',
				items : [
				        {
							id    : 'header',
							region: 'north',
							html  : '<a href="http://www.mera.ru" target="_blank"><img alt="Mera" src="images/mera_logo.png"></img></a>',
							frame : true,
							height: 60
						}, 
							new CSViewerTreePanel()
						, 
							new CSViewerInfoPanel()
						, {
			            	 id    : 'footer',
			                 region: 'south',
			                 frame: true,
			                 html: '<p>&copy; 2012 Dmitry Vikhrev / Tektronix team </p>' + 'App Version: ' + CSViewerApp.version,
			                 height: 50
			              }]
		}
		Ext.apply(this, Ext.apply(this.initialConfig, config));
		CSViewerMainWindow.superclass.initComponent.call(this);
	}
});

Ext.reg('xCSViewerMainWindow', CSViewerMainWindow);